package ar.com.equis.arquitectura.service {
	import mx.core.FlexGlobals;
	
	/**
	 * Base class for generated services
	 */
	public class BusinessService extends AbstractBusinessService {
		
		public function BusinessService() {
			//Nothing to do
		}	

		protected function locateSevice():Service {
			var service:Service;

			if(blocking) {
				service = ServiceLocator.locateBlockingService(serviceName);
			} else {
				service = ServiceLocator.locate(serviceName);
			}
			service.callbackFunction = callbackFunction;
			service.errorCallbackFunction = errorCallbackFunction;
			
			return service;
		}
	}
}